package com.resafety.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient(value="CLOUD-PROVIDER-HYSTRIX-PAYMENT")
public interface FeignService {
    @RequestMapping("paymentok/{id}")
    public String Payment_OK(@PathVariable("id") Integer id);

    @RequestMapping("paymenttimeout/{id}")
    public String Payment_timeout(@PathVariable("id") Integer id);
}
